﻿/// <reference path="../services/appModel.js" />
define([
  'durandal/system',
  'durandal/plugins/router',
  'services/logger',
  'services/appModel'
],
    function (system, router, logger, appModel) {
      var shell = {
        router: router,
        activate: _activate,
        bind: _bind
      };

      return shell;

      //#region Internal Methods
      function _activate() {
        return _initializeRouting();
      }

      function _initializeRouting() {
        router.mapRoute('home', null, 'Start', false);
        router.mapRoute('shoppingList', null, 'Einkaufen', true);
        router.mapNav('about', null, 'Das Projekt');
        router.mapRoute('impress', null, 'Impressum', false);

        //log('Hot Towel SPA Loaded!', null, true);
        return router.activate('home');
      }

      function _bind() {
        //logger.log('map initialized', 'shell', $('#map').html())
      }


      //#endregion
    });